package com.example.source.mybatis.tk;

import org.apache.ibatis.annotations.UpdateProvider;
import tk.mybatis.mapper.annotation.RegisterMapper;

@RegisterMapper
public interface BaseUpdateWithNull<T> {
    /**
     * 根据主键更新属性不为null的值
     *
     * @param record
     * @return
     */
    @UpdateProvider(type = BaseUpdateProviderWithNull.class, method = "dynamicSQL")
    int updateByPrimaryKeyWithNull(T record);
}
